from setuptools import find_packages, setup
import os
from glob import glob
package_name = 'python_basketball_detector'

setup(
    name=package_name,
    version='0.0.1',
    packages=find_packages(exclude=['test']),
    data_files=[
        ('share/ament_index/resource_index/packages',
            ['resource/' + package_name]),
        ('share/' + package_name, ['package.xml']),
        (os.path.join('share', package_name, 'models'), glob('models/*')),
    ],
    install_requires=['setuptools'],
    zip_safe=True,
    maintainer='your_name',
    maintainer_email='your_email@example.com',
    description='Python node for basketball detection',
    license='Apache-2.0',
    tests_require=['pytest'],
    entry_points={
        'console_scripts': [
            # 这一行是关键！
            # 'executable_name = package_name.filename:main_function'
            'basketball_detector = python_basketball_detector.basketball_ros2_node:main',
        ],
    },
)
